package cz.fit.dpo.task1.utils;

/**
 * class implementing tuples
 */
public class Tuple<T, U> {

	/**
	 * first item
	 */
	T item1;

	/**
	 * second item
	 */
	U item2;
	
	/**
	 * constructs the tuple
	 */
	public Tuple (T i1, U i2) {
		item1=i1;
		item2=i2;
	}

	/**
	 * gets first item
	 */
	public T getItem1() {
		return item1;
	}

	/**
	 * sets first item
	 */
	public void setItem1(T item1) {
		this.item1 = item1;
	}

	/**
	 * gets second item
	 */
	public U getItem2() {
		return item2;
	}

	/**
	 * sets second item
	 */
	public void setItem2(U item2) {
		this.item2 = item2;
	}
		
}
